var PlusFortQueLaTele = new Object();
PlusFortQueLaTele.rev                = 1;
PlusFortQueLaTele.SearchDesc         = 'Search on PlusFortQueLaTele';
PlusFortQueLaTele.Name               = 'PlusFortQueLaTele';
PlusFortQueLaTele.Search             = function (keyword, page){
  var result = new Object();
  result.bypage                        = 24;
  result.start                         = (page-1)*result.bypage+1;
  c = GetContents('http://www.plusfortquelatele.com/videos/?filtre=1&tag='+escape(keyword)+'&p='+page);
  switch (keyword) {
    case '#best':
    c = GetContents('http://www.plusfortquelatele.com/videos/?filtre=1&tri=notees&p='+page);
    break;
    case '#news':
    c = GetContents('http://www.plusfortquelatele.com/videos/?filtre=1&tri=recentes&p='+page);
    break;
    case '#views':
    c = GetContents('http://www.plusfortquelatele.com/videos/?filtre=1&tri=nb_vu&p='+page);
    break;
  }
  result.total                         = -1;
  result.VideoInfo = new Array();
  if (page == 1){
    video = new Object();
    video.attr               = 1;
    video.Title              = 'GoTube info';
    video.Description        = 'You can search #best, #news or #views for find the best, the news \n or the most viewed videos on this site.';
    video.Tags               = '#best #news #views';
    result.VideoInfo.push(video);
  }
  while (p = c.indexOf('<table',p)+1){
    video = new Object();
    video.attr                           = 3;
    video.page                           = ext('href="');
    video.Title                          = ext('class="lnk_lidevin_14">');
    video.Id                             = ext('http://miniatures.plusfortquelatele.com/miniatures2/','.jpg');
	video.ThumbnailURL                   = 'http://miniatures.plusfortquelatele.com/miniatures2/'+video.Id+'.jpg';
    video.Description                    = ext('<span class="bold">','</span>')+' par '+ext('">','</a>');
    video.ViewCount                      = ext('<br />',' Vues')*1;
	video.SaveFilename                   = video.Title+'.flv';
    video.URL                            = 'http://stream1.plusfortquelatele.com/'+video.Id+'.flv';
    result.VideoInfo.push(video);
  }
  result.end                           = result.start-1+result.VideoInfo.length;
  return result;
}
SiteList.push(PlusFortQueLaTele);